package com.kk.adapter.classadapter;

/**
 * 适配器模式
 *
 * @author 王志强
 * @date 2021-12-16
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("====类适配器模式=====");

        Phone phone = new Phone();
        phone.charging(new VoltageAdapter());
    }
}
